<div class="list">
     <table>
         <thead>
             <tr>
             	<th>${message(code: 'consumo.consumo.label', default: 'Legajo')} </th>
             	
             	 <th>${message(code: 'consumo.consumo.label', default: 'Apellido y Nombre')} </th>
             	
                 <th style="text-align:center; width:20em">Servicios ${rubro.nombre} <g:formatDate date="${periodo}" format="MM-yyyy"/></th>
             
                 <th><g:message code="consumo.afiliado.label" default="Importe" /></th>
             
                 <th>${message(code: 'consumo.estado.label', default: 'Codigo de Desc')} </th>
             </tr>
         </thead>
         <tbody>
        		<g:each in="${consumos}" status="l" var="consumoInstance">
        			<tr>
        			<td>${fieldValue(bean: consumoInstance, field: "afiliado.legajo")}</td>
        			
                	<td>${fieldValue(bean: consumoInstance, field: "afiliado.apellidoNombre")}</td>
            
                	<td>&nbsp;</td>
            
                	<td style="text-align:right"><g:formatNumber number="${consumoInstance?.monto}" type="number" minFractionDigits="2" maxFractionDigits ="2" roundingMode="HALF_UP" /></td>
                
                	<td style="text-align:center">${fieldValue(bean: consumoInstance, field: "proveedor.rubro.codigo")}</td>
                	</tr>
        		</g:each>
				 <tr>
				  <td>&nbsp;</td><td>&nbsp;</td>
				  <td style="font-weight:bold">Total descuento:</td>
				  <td style="text-align:right"><g:formatNumber number="${subTotal}" type="number" minFractionDigits="2" maxFractionDigits ="2" roundingMode="HALF_UP" /></td>
				  <td>&nbsp;</td>
				 </tr>


        </tbody>
    </table>
</div>